//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_canRevive.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

_unit    = _this select 0;
_injured = _this select 1;
_array_item_unit    = items _unit;
_array_item_injured = items _injured;
_cond = false;
{if (_unit isKindOf _x) then {_cond = true};} foreach BTC_who_can_revive;
if (_cond && BTC_need_first_aid == 1) then
{
	if (_array_item_unit find "FirstAidKit" == -1 && _array_item_unit find "Medikit" == -1) then {_cond = false;};
	if (!_cond && (_array_item_injured find "FirstAidKit" != -1 || _array_item_injured find "Medikit" != -1)) then {_cond = true;};
};
_cond